<?php

class PayTestController extends Controller{
	
	public function actionPay(){
		Yii::app()->pay->alipay->toPay('测试商品01',0.01);	//支付宝
//		Yii::app()->pay->tenpay->toPay('测试商品01',0.01);	//财付通
	}
	
	public function actionNotify(){
		var_dump(	//支付宝
			Yii::app()->pay->alipay->notify,
			Yii::app()->pay->alipay->tid,
			Yii::app()->pay->alipay->price
		);
//		var_dump(	//财付通
//			Yii::app()->pay->tenpay->notify,
//			Yii::app()->pay->tenpay->tid,
//			Yii::app()->pay->tenpay->price
//		);
	}
	
}

?>